package com.dora.http.base.headerfilter;

import com.dora.http.base.listener.HeadersFilterAdapter;
import com.dora.http.utils.MapTool;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @Author: Dora
 * @Description: Http固定请求头
 * @Date: 2021/12/11
 */
@Slf4j
public class DefHeadersFilter extends HeadersFilterAdapter {
    @Override
    public Map<String, String> defHeaders(){
        return MapTool.builder()
                .put("Content-Type", "application/json;charset=utf-8")
                .build();
    }
}
